68 #define UI_DISPLAY_CHARSET 2 77 #define BEEPER_TYPE_INVERTING false 80 #if BEEPER_TYPE==1 && !defined(BEEPER_PIN) 84 #define BEEPER_ADDRESS 0x40 // I2C address of the chip with the beeper pin 85 #define BEEPER_PIN _BV(7) // Bit value for pin 8 86 #define COMPILE_I2C_DRIVER // We need the I2C driver as we are using i2c 101 #define UI_DISPLAY_TYPE 5 103 #if UI_DISPLAY_TYPE == DISPLAY_U8G // Special case for graphic displays 113 #define U8GLIB_ST7920 131 #define UI_LCD_WIDTH 128 132 #define UI_LCD_HEIGHT 64 135 #define UI_FONT_6X10 //default font 137 #define UI_FONT_WIDTH 6 138 #define UI_FONT_HEIGHT 10 139 #define UI_FONT_SMALL_HEIGHT 7 140 #define UI_FONT_DEFAULT repetier_6x10 141 #define UI_FONT_SMALL repetier_5x7 142 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 146 #define UI_COLS (UI_LCD_WIDTH/UI_FONT_WIDTH) 147 #define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT) 148 #undef UI_DISPLAY_CHARSET 149 #define UI_DISPLAY_CHARSET 3 159 #endif // UI_DISPLAY_TYPE 165 #define UI_DISPLAY_I2C_CHIPTYPE 0 168 #define UI_DISPLAY_I2C_ADDRESS 0x4e 170 #define UI_DISPLAY_I2C_OUTPUT_PINS 65504 174 #define UI_DISPLAY_I2C_OUTPUT_START_MASK 0 176 #define UI_DISPLAY_I2C_PULLUP 31 179 #define UI_I2C_CLOCKSPEED 100000L 183 #if UI_DISPLAY_TYPE == DISPLAY_I2C // I2C Pin configuration 184 #define UI_DISPLAY_RS_PIN _BV(4) 185 #define UI_DISPLAY_RW_PIN _BV(5) 186 #define UI_DISPLAY_ENABLE_PIN _BV(6) 187 #define UI_DISPLAY_D0_PIN _BV(0) 188 #define UI_DISPLAY_D1_PIN _BV(1) 189 #define UI_DISPLAY_D2_PIN _BV(2) 190 #define UI_DISPLAY_D3_PIN _BV(3) 191 #define UI_DISPLAY_D4_PIN _BV(0) 192 #define UI_DISPLAY_D5_PIN _BV(1) 193 #define UI_DISPLAY_D6_PIN _BV(2) 194 #define UI_DISPLAY_D7_PIN _BV(3) 218 #else // Direct display connections 219 #define UI_DISPLAY_RS_PIN 63 // PINK.1, 88, D_RS 220 #define UI_DISPLAY_RW_PIN -1 221 #define UI_DISPLAY_ENABLE_PIN 65 // PINK.3, 86, D_E 222 #define UI_DISPLAY_D0_PIN 59 // PINF.5, 92, D_D4 223 #define UI_DISPLAY_D1_PIN 64 // PINK.2, 87, D_D5 224 #define UI_DISPLAY_D2_PIN 44 // PINL.5, 40, D_D6 225 #define UI_DISPLAY_D3_PIN 66 // PINK.4, 85, D_D7 226 #define UI_DISPLAY_D4_PIN 59 // PINF.5, 92, D_D4 227 #define UI_DISPLAY_D5_PIN 64 // PINK.2, 87, D_D5 228 #define UI_DISPLAY_D6_PIN 44 // PINL.5, 40, D_D6 229 #define UI_DISPLAY_D7_PIN 66 // PINK.4, 85, D_D7 230 #define UI_DELAYPERCHAR 50 234 #define UI_DISPLAY_CS1 59 235 #define UI_DISPLAY_CS2 59 236 #define UI_DISPLAY_DI 59 237 #define UI_DISPLAY_RW_PIN 59 238 #define UI_DISPLAY_RESET_PIN 59 248 #define UI_HAS_KEYS 1 256 #define UI_HAS_BACK_KEY 1 262 #define UI_INVERT_MENU_DIRECTION 0 268 #define UI_HAS_I2C_ENCODER 0 272 #define UI_I2C_KEY_ADDRESS 0x40 363 #define UI_MATRIX_ACTIONS {UI_ACTION_HOME_ALL, UI_ACTION_TOP_MENU, UI_ACTION_SET_ORIGIN, UI_ACTION_NEXT,\ 364 UI_ACTION_HOME_Z, UI_ACTION_MENU_ZPOS, UI_ACTION_COOLDOWN, UI_ACTION_OK,\ 365 UI_ACTION_HOME_Y, UI_ACTION_MENU_YPOSFAST, UI_ACTION_PREHEAT_ALL, UI_ACTION_PREVIOUS,\ 366 UI_ACTION_HOME_X, UI_ACTION_MENU_XPOSFAST, UI_ACTION_DISABLE_STEPPER, UI_ACTION_BACK} 367 #ifdef UI_MATRIX_ACTIONS 368 const int matrixActions[]
PROGMEM = UI_MATRIX_ACTIONS;
399 #if defined(UI_HAS_I2C_KEYS) && UI_HAS_KEYS!=0 400 #if UI_DISPLAY_I2C_CHIPTYPE==0 404 #if UI_DISPLAY_I2C_CHIPTYPE==1 418 #if defined(UI_HAS_I2C_KEYS) && UI_HAS_KEYS!=0 419 #if UI_DISPLAY_I2C_CHIPTYPE==0 423 #if UI_DISPLAY_I2C_CHIPTYPE==1 static void i2cStop(void)
Definition: HAL.cpp:459
#define UI_KEYS_I2C_BUTTON_LOW(pin, action_)
Definition: ui.h:411
static uint8_t i2cReadNak(void)
Definition: HAL.cpp:506
void uiCheckSlowEncoder()
Definition: gameduino2.h:167
#define UI_KEYS_INIT_BUTTON_LOW(pin)
Definition: ui.h:365
#define UI_KEYS_BUTTON_LOW(pin, action_)
Definition: ui.h:371
#define I2C_READ
Definition: HAL.h:144
#define UI_ACTION_MENU_POSITIONS
Definition: ui.h:282
static void i2cWrite(uint8_t data)
Definition: HAL.cpp:475
void uiCheckSlowKeys(int &action)
Definition: gameduino2.h:168
#define UI_ACTION_NEXT
Definition: ui.h:61
#define UI_ACTION_MENU_QUICKSETTINGS
Definition: ui.h:280
#define UI_ACTION_TOPMENU
Definition: ui.h:58
static uint8_t i2cReadAck(void)
Definition: HAL.cpp:494
#define UI_ACTION_BACK
Definition: ui.h:82
#define UI_DISPLAY_I2C_ADDRESS
Definition: uiconfig.h:168
void uiCheckKeys(int &action)
Definition: gameduino2.h:166
#define I2C_WRITE
Definition: HAL.h:146
const int8_t sensitive_pins [] PROGMEM
Definition: Commands.cpp:24
#define UI_KEYS_I2C_CLICKENCODER_LOW_REV(pinA, pinB)
Definition: ui.h:410
#define UI_ACTION_OK
Definition: ui.h:83
#define UI_I2C_KEY_ADDRESS
Definition: uiconfig.h:272
void uiInitKeys()
Definition: gameduino2.h:165
#define UI_ACTION_SD_PRINT
Definition: ui.h:94
static void i2cStartWait(uint8_t address)
Definition: HAL.cpp:415
#define UI_ACTION_MENU_EXTRUDER
Definition: ui.h:281
#define UI_ACTION_PREVIOUS
Definition: ui.h:62